//
//  BarrageViewController.swift
//  SwiftStudy3.0
//
//  Created by maliang on 2017/4/22.
//  Copyright © 2017年 maliang. All rights reserved.
//

import UIKit

class BarrageViewController: MMenuItem {

    var barrageManageView:BarrageManager?
    
    override func viewDidLoad() {
        
        super.viewDidLoad()
        self.barrageManageView = BarrageManager.barrageManagerView(frame: CGRect.init(x: 0, y: 100, width: MScreenWidth, height: 300), inView: self.view)
        var array = [String]()
        for i in 1...100{
            
            var str = "发生的范德萨发fdsfdsf\(i)"
            if i % 2 == 0{
                
                str = str + "飞士大夫的范德萨范德萨"
            }
            array.append(str)
        }
        self.barrageManageView?.showWithQueue(queue: array)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    override class func menuitem() -> MMenuItem?{
        
        return BarrageViewController.init(nibName: nil, bundle: nil)
    }

}
